package com.example.feigncustomer.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.*;

/**
 * @ClassName: interface1
 * @Description: TODO
 * @Author: YangGuisen
 * @Date: 2018/7/12 17:42
 * @Version: 1.0
 */
@Service
@FeignClient(value = "client1",fallback = SchedualServiceHiHystric.class)
public interface ServiceHi {
    @GetMapping(value = "/hi")
    String getStr(@RequestParam("name") String name);
}
